from django.db import models

# Create your models here.

class Leave(models.Model):
    name = models.CharField(max_length=20)

class User(models.Model):
    user_name = models.CharField(max_length=30)
    leave = models.ForeignKey(Leave,on_delete=models.CASCADE)
    favourable = models.ManyToManyField('Favourable')

class Favourable(models.Model):
    fid = models.CharField(max_length=100,primary_key=True)
    name = models.CharField(max_length=30)

class Goods(models.Model):
    name = models.CharField(max_length=1)





